package com.sanjiahantang.youjiaclient.module.me.order.beans;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.sanjiahantang.youjiaclient.base.BaseBean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * Created by admin on 2017/10/27.
 */

public class ServiceListBean extends BaseBean{
    public List<Data> getData() {
        ServiceList list = new Gson().fromJson(data,ServiceList.class);
        if (list == null){
            return new ArrayList<>();
        }
        return list.getList();
    }
    public void setData(String data) {
        this.data = data;
    }
    private String data;


    public static class ServiceList extends ListBean{
        private List<Data> list;

        public List<Data> getList() {
            return list;
        }

        public void setList(List<Data> list) {
            this.list = list;
        }
    }

    public Data getItem(){
        return new Gson().fromJson(data,Data.class);
    }

    public static class Data implements Serializable{

        private int oiFaId;
        private String orderCode;//订单编号
        private int osraId;
        private float payMoney;//支付金额
        private float payResult;//应付金额
        private int serviceType;
        private int statusId;//订单状态
        private String statusName;//订单状态名称
        private ArrayList<ServiceRecordListBean> serviceRecordList;
        private String createTime;
        private String token;
        private int phoneTypeId;
        private int planOrderstate;
        private float areadyResult;
        private String payPwd;
        private CreateOrderPost.OrderInvoiceInfoDtoBean orderInvoiceInfoDto;
        private ShopListBean.PayVo payVo;
        private String apartmentName;
        private int isPos=0;

        public int getIsPos() {
            return isPos;
        }

        public void setIsPos(int isPos) {
            this.isPos = isPos;
        }

        public String getApartmentName() {
            return apartmentName;
        }

        public void setApartmentName(String apartmentName) {
            this.apartmentName = apartmentName;
        }

        private HashMap<String,String> jdOrderInfo;
        private ArrayList<HashMap<String,String>> mOrderInfo;


        public ShopListBean.PayVo getPayVo() {
            return payVo;
        }

        public void setPayVo(ShopListBean.PayVo payVo) {
            this.payVo = payVo;
        }

        public CreateOrderPost.OrderInvoiceInfoDtoBean getOrderInvoiceInfoDto() {
            return orderInvoiceInfoDto;
        }

        public void setOrderInvoiceInfoDto(CreateOrderPost.OrderInvoiceInfoDtoBean orderInvoiceInfoDto) {
            this.orderInvoiceInfoDto = orderInvoiceInfoDto;
        }

        public int getPlanOrderstate() {
            return planOrderstate;
        }

        public void setPlanOrderstate(int planOrderstate) {
            this.planOrderstate = planOrderstate;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public int getPhoneTypeId() {
            return phoneTypeId;
        }

        public void setPhoneTypeId(int phoneTypeId) {
            this.phoneTypeId = phoneTypeId;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public int getOiFaId() {
            return oiFaId;
        }

        public void setOiFaId(int oiFaId) {
            this.oiFaId = oiFaId;
        }

        public String getOrderCode() {
            return orderCode;
        }

        public void setOrderCode(String orderCode) {
            this.orderCode = orderCode;
        }

        public int getOsraId() {
            return osraId;
        }

        public void setOsraId(int osraId) {
            this.osraId = osraId;
        }

        public float getPayMoney() {
            return payMoney;
        }

        public void setPayMoney(float payMoney) {
            this.payMoney = payMoney;
        }

        public float getPayResult() {
            return payResult;
        }

        public void setPayResult(float payResult) {
            this.payResult = payResult;
        }

        public int getServiceType() {
            return serviceType;
        }

        public void setServiceType(int serviceType) {
            this.serviceType = serviceType;
        }

        public int getStatusId() {
            return statusId;
        }

        public void setStatusId(int statusId) {
            this.statusId = statusId;
        }

        public String getStatusName() {
            return statusName;
        }

        public void setStatusName(String statusName) {
            this.statusName = statusName;
        }

        public ArrayList<ServiceRecordListBean> getServiceRecordList() {
            return serviceRecordList;
        }

        public void setServiceRecordList(ArrayList<ServiceRecordListBean> serviceRecordList) {
            this.serviceRecordList = serviceRecordList;
        }


        public String getPayPwd() {
            return payPwd;
        }

        public void setPayPwd(String payPwd) {
            this.payPwd = payPwd;
        }

        public float getAreadyResult() {
            return areadyResult;
        }

        public void setAreadyResult(float areadyResult) {
            this.areadyResult = areadyResult;
        }

        public HashMap<String, String> getJdOrderInfo() {
            return jdOrderInfo;
        }

        public void setJdOrderInfo(HashMap<String, String> jdOrderInfo) {
            this.jdOrderInfo = jdOrderInfo;
        }

        public ArrayList<HashMap<String, String>> getmOrderInfo() {
            return mOrderInfo;
        }

        public void setmOrderInfo(ArrayList<HashMap<String, String>> mOrderInfo) {
            this.mOrderInfo = mOrderInfo;
        }

        public static class ServiceRecordListBean implements Serializable{

            private int count;//数量
            private String orderRecordCode;//订单编号
            private String osrRaId;
            private int osraFaId;//服务订单
            private int payCount;//支付次数
            private float payResult;//已支付金额
            private int payTemplateCount;//服务支付次数
            private float price;//价格
            private float result;//总金额
            private String serviceName;//fuwu name
            private long skuFaId;
            private int statusId;
            private String statusName;
            private int mgiId;
            private int orderTypeId;

            private String onePay;
            private String twoPay;
            private String threePay;
            private String remark;

            private int planOrderState;

            public int getPlanOrderState() {
                return planOrderState;
            }

            public void setPlanOrderState(int planOrderState) {
                this.planOrderState = planOrderState;
            }

            public String getOnePay() {
                return onePay;
            }

            public void setOnePay(String onePay) {
                this.onePay = onePay;
            }

            public String getTwoPay() {
                return twoPay;
            }

            public void setTwoPay(String twoPay) {
                this.twoPay = twoPay;
            }

            public String getThreePay() {
                return threePay;
            }

            public void setThreePay(String threePay) {
                this.threePay = threePay;
            }

            public int getOrderTypeId() {
                return orderTypeId;
            }

            public void setOrderTypeId(int orderTypeId) {
                this.orderTypeId = orderTypeId;
            }

            public int getMgiId() {
                return mgiId;
            }

            public void setMgiId(int mgiId) {
                this.mgiId = mgiId;
            }

            public int getCount() {
                return count;
            }

            public void setCount(int count) {
                this.count = count;
            }

            public String getOrderRecordCode() {
                return orderRecordCode;
            }

            public void setOrderRecordCode(String orderRecordCode) {
                this.orderRecordCode = orderRecordCode;
            }

            public String getOsrRaId() {
                return osrRaId;
            }

            public void setOsrRaId(String osrRaId) {
                this.osrRaId = osrRaId;
            }

            public int getOsraFaId() {
                return osraFaId;
            }

            public void setOsraFaId(int osraFaId) {
                this.osraFaId = osraFaId;
            }

            public int getPayCount() {
                return payCount;
            }

            public void setPayCount(int payCount) {
                this.payCount = payCount;
            }

            public float getPayResult() {
                return payResult;
            }

            public void setPayResult(float payResult) {
                this.payResult = payResult;
            }

            public int getPayTemplateCount() {
                return payTemplateCount;
            }

            public void setPayTemplateCount(int payTemplateCount) {
                this.payTemplateCount = payTemplateCount;
            }

            public float getPrice() {
                return price;
            }

            public void setPrice(float price) {
                this.price = price;
            }

            public float getResult() {
                return result;
            }

            public void setResult(float result) {
                this.result = result;
            }

            public String getServiceName() {
                return serviceName;
            }

            public void setServiceName(String serviceName) {
                this.serviceName = serviceName;
            }

            public long getSkuFaId() {
                return skuFaId;
            }

            public void setSkuFaId(long skuFaId) {
                this.skuFaId = skuFaId;
            }

            public int getStatusId() {
                return statusId;
            }

            public void setStatusId(int statusId) {
                this.statusId = statusId;
            }

            public String getStatusName() {
                return statusName;
            }

            public void setStatusName(String statusName) {
                this.statusName = statusName;
            }

            public String getRemark() {
                return remark;
            }

            public void setRemark(String remark) {
                this.remark = remark;
            }
        }
    }

}
